package com.giser.testapp.lib.Location;

import java.util.Timer;
import java.util.TimerTask;

/**
 * Created by Lss on 2017/11/30.
 */

public class LocationReport {
    private Timer timer;
    private long timeInterval;
    public void startReportLocation(){

        if (timer == null) {
            timer = new Timer();
            timer.schedule(new TimerTask() {
                @Override
                public void run() {

                }
            }, timeInterval,timeInterval);
        }
    }
    public void stopReportLocation(){
        if (timer != null) {
            timer.cancel();
            timer = null;
        }
    }
}
